<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:r="http://richfaces.ajax4jsf.org/rich" xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:s="http://jboss.com/products/seam/taglib" xmlns:a="https://ajax4jsf.dev.java.net/ajax">

	<a:status startText="opa" stopText="parado"></a:status>

	<r:tree id="trArvore" switchType="ajax" nodeSelectListener="#{arvoreMB.nodoSelecionado}" ajaxSubmitSelection="true">

		<r:treeNodesAdaptor id="produtos" nodes="#{produtos}" var="prod">

			<r:treeNode icon="/img/building.png" iconLeaf="/img/building.png">
				<h:outputText value="#{prod.nome}" />
			</r:treeNode>

			<r:treeNodesAdaptor id="liberacoes" nodes="#{prod.releases}" var="rele">

				<r:treeNode icon="/img/package.png" iconLeaf="/img/package.png">
					<h:outputText value="#{rele.nome}" />
				</r:treeNode>

				<r:treeNodesAdaptor id="ciclos" nodes="#{rele.sprints}" var="spri">

					<r:treeNode icon="/img/arrow_rotate_clockwise.png" iconLeaf="/img/arrow_rotate_clockwise.png">
						<h:outputText value="#{spri.nome}" />
					</r:treeNode>

				</r:treeNodesAdaptor>

			</r:treeNodesAdaptor>

		</r:treeNodesAdaptor>

	</r:tree>

</ui:composition>